package com.we.risk.attribution;

public class AttributionInfo {
    public static final String CHANNEL = "unique_channel";
    public static final String RECVTIME = "receive_time";
    public static final String HFQIDFA = "hfq_idfa";
    public static final String HFQOAID = "hfq_oaid";
    public static final String HFQADVSTID = "hfq_advertiser_id";
    public static final String HFQCMPGID = "hfq_campaign_id";
    public static final String HFQAID = "hfq_aid";
    public static final String HFQCLKID = "hfq_click_id";
    public static final String HFQORIGIN = "hfq_origin";
    public static final String DEVICEID = "device_id";
    public static final String RECVCNT = "cnt";
    public static final String DTTIME = "dt_time";
    public static final String RTTYPE = "rt_type";
    public static final long STARTIME = 1677427200000L; // 2023-02-27 00:00:00
    //            1676995200000L; //2023-02-22 00:00:00

    public String unique_channel;
    public long receive_time;
    public String device_id;
    public String hfq_advertiser_id;
    public String hfq_campaign_id;
    public String hfq_aid;
    public String hfq_click_id;
    public int recv_cnt;
    public int rt_type; // 0:early 1:late

    public AttributionInfo(
            String unique_channel,
            long receive_time,
            String device_id,
            String hfq_advertiser_id,
            String hfq_campaign_id,
            String hfq_aid,
            String hfq_click_id) {
        this.unique_channel = unique_channel;
        this.receive_time = receive_time;
        this.device_id = device_id;
        this.hfq_advertiser_id = hfq_advertiser_id;
        this.hfq_campaign_id = hfq_campaign_id;
        this.hfq_aid = hfq_aid;
        this.hfq_click_id = hfq_click_id;
    }

    public AttributionInfo(
            String unique_channel,
            long receive_time,
            String device_id,
            String hfq_advertiser_id,
            String hfq_campaign_id,
            String hfq_aid,
            String hfq_click_id,
            int recv_cnt,
            int rt_type) {
        this.unique_channel = unique_channel;
        this.receive_time = receive_time;
        this.device_id = device_id;
        this.hfq_advertiser_id = hfq_advertiser_id;
        this.hfq_campaign_id = hfq_campaign_id;
        this.hfq_aid = hfq_aid;
        this.hfq_click_id = hfq_click_id;
        this.recv_cnt = recv_cnt;
        this.rt_type = rt_type;
    }

    public AttributionInfo(AttributionInfo src) {
        this.unique_channel = src.unique_channel;
        this.receive_time = src.receive_time;
        this.device_id = src.device_id;
        this.hfq_advertiser_id = src.hfq_advertiser_id;
        this.hfq_campaign_id = src.hfq_campaign_id;
        this.hfq_aid = src.hfq_aid;
        this.hfq_click_id = src.hfq_click_id;
        this.recv_cnt = src.recv_cnt;
        this.rt_type = src.rt_type;
    }

    public String getUnique_channel() {
        return unique_channel;
    }

    public long getReceive_time() {
        return receive_time;
    }

    public String getDevice_id() {
        return device_id;
    }

    public String getHfq_advertiser_id() {
        return hfq_advertiser_id;
    }

    public String getHfq_campaign_id() {
        return hfq_campaign_id;
    }

    public String getHfq_aid() {
        return hfq_aid;
    }

    public String getHfq_click_id() {
        return hfq_click_id;
    }

    public int getRecv_cnt() {
        return recv_cnt;
    }

    public int getRt_type() {
        return rt_type;
    }

    public void setRecv_cnt(int recv_cnt) {
        this.recv_cnt = recv_cnt;
    }

    public void setRt_type(int rt_type) {
        this.rt_type = rt_type;
    }

    @Override
    public String toString() {
        return "AttributionInfo{"
                + "unique_channel='"
                + unique_channel
                + '\''
                + ", receive_time="
                + receive_time
                + ", device_id='"
                + device_id
                + '\''
                + ", hfq_advertiser_id='"
                + hfq_advertiser_id
                + '\''
                + ", hfq_campaign_id='"
                + hfq_campaign_id
                + '\''
                + ", hfq_aid='"
                + hfq_aid
                + '\''
                + ", hfq_click_id='"
                + hfq_click_id
                + '\''
                + ", recv_cnt="
                + recv_cnt
                + ", rt_type="
                + rt_type
                + '}';
    }
}
